<%@page import="com.lrf.freeshipping.bean.AdminBean"%>
<%@page import="com.lrf.freeshipping.tool.Constant"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <div class="navbar">
        <div class="navbar-inner">
          <div class="container-fluid">
                <ul class="nav pull-right">
                    
                    <li id="fat-menu" class="dropdown">
                        <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <!-- <i class="icon-user"></i> -->
                              <% boolean flag = false;
                                 AdminBean admin = new AdminBean();
                                 if(Constant.LOGIN_STATE.equals((String)session.getAttribute(Constant.LOGIN_TAG))){
                                     admin = (AdminBean)session.getAttribute("admin"); 
                                     flag = true;
                              %>
                               <img alt="头像" src="assets/image/admin.jpg">&nbsp;&nbsp;                           
                                <%=admin.getUsername()%>                         
                              <%}else{   
                                  flag = false;
                              %>
                              <i class="icon-user"></i>
                                                                                            请登录                                                           
                              <%} %>
                              <i class="icon-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="modify-password.jsp">设置账户</a></li>
                            <li class="divider"></li>
                            <%if(flag){%>
                              <li><a tabindex="-1" href="SignOut">退出</a></li>
                            <%}else{ %>
                              <li><a tabindex="-1" href="sign-in.jsp">登录</a></li>
                            <%} %>
                        </ul>
                    </li>
                    
                </ul>
              <a class="brand" href="index.jsp">
              <img alt="" src="assets/image/icon.png">
                                          商品管理系统</a>            </div>
        </div>
    </div>
